package com.cgsrp.cgsrp_shopping.dao;

import com.cgsrp.cgsrp_shopping.domain.ShoppingCart;
import com.cgsrp.utils.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingCartMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShoppingCart record);

    int insertSelective(ShoppingCart record);

    ShoppingCart selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShoppingCart record);

    int updateByPrimaryKey(ShoppingCart record);

    List<ShoppingCart> findByProductIdUserId(@Param("userId") Integer userId, @Param("productId") Integer productId);

    List<ShoppingCart> list(Integer userId);

    ShoppingCart findById(int creatById);
}
